package com.xcc.eureka.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @outhor Ren
 * @create 2019-03-01 22:47
 * 描述:
 */

@SpringBootApplication
@EnableEurekaClient
// EnableDiscoveryClient 启用服务发现，发现其他在 Eureka 服务端注册的服务
@EnableDiscoveryClient
// 采用 feign 的方式发现服务
@EnableFeignClients
public class EurekaFeignApplication {

    public static void main(String[] args){
        SpringApplication.run(EurekaFeignApplication.class);
    }
}
